home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1995-04-23 | 2.3 KB | [TEXT/MPS ] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
66%
| dexvert
| Compact Compressed (Unix) (archive/compact)
| ext
| Supported |
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Sun Apr 23 00:07:49 1995, modified Sun Apr 23 00:07:49 1995, creator 'MPS ', type ASCII, 1551 bytes "CExample.c" , at 0x68f 428 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [MPS ] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0a 43 45 78 61 6d 70 | 6c 65 2e 63 00 00 00 00 |..CExamp|le.c....|
|00000010| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4d 50 53 | 20 01 00 00 00 00 00 00 |.TEXTMPS| .......|
|00000050| 00 00 00 00 00 06 0f 00 | 00 01 ac ab bf 83 15 ab |........|........|
|00000060| bf 83 15 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 5d 70 00 00 |........|....]p..|
|00000080| 23 69 6e 63 6c 75 64 65 | 20 3c 73 74 64 69 6f 2e |#include| <stdio.|
|00000090| 68 3e 0d 0d 23 69 6e 63 | 6c 75 64 65 20 3c 54 79 |h>..#inc|lude <Ty|
|000000a0| 70 65 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |pes.h>.#|include |
|000000b0| 3c 46 69 6c 65 73 2e 68 | 3e 0d 0d 23 69 66 6e 64 |<Files.h|>..#ifnd|
|000000c0| 65 66 20 54 48 49 4e 4b | 5f 43 0d 23 69 6e 63 6c |ef THINK|_C.#incl|
|000000d0| 75 64 65 20 3c 53 74 72 | 69 6e 67 73 2e 68 3e 0d |ude <Str|ings.h>.|
|000000e0| 23 65 6e 64 69 66 0d 0d | 23 69 6e 63 6c 75 64 65 |#endif..|#include|
|000000f0| 20 3c 49 43 54 79 70 65 | 73 2e 68 3e 0d 23 69 6e | <ICType|s.h>.#in|
|00000100| 63 6c 75 64 65 20 3c 49 | 43 41 50 49 2e 68 3e 0d |clude <I|CAPI.h>.|
|00000110| 23 69 6e 63 6c 75 64 65 | 20 3c 49 43 4b 65 79 73 |#include| <ICKeys|
|00000120| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 49 43 |.h>.#inc|lude <IC|
|00000130| 43 41 50 49 2e 68 3e 0d | 0d 76 6f 69 64 20 44 75 |CAPI.h>.|.void Du|
|00000140| 6d 70 50 72 65 66 73 28 | 76 6f 69 64 29 3b 0d 0d |mpPrefs(|void);..|
|00000150| 49 43 49 6e 73 74 61 6e | 63 65 20 69 6e 73 74 3b |ICInstan|ce inst;|
|00000160| 0d 0d 6d 61 69 6e 20 28 | 29 20 7b 0d 09 49 43 45 |..main (|) {..ICE|
|00000170| 72 72 6f 72 20 65 72 72 | 3b 0d 09 49 43 44 69 72 |rror err|;..ICDir|
|00000180| 53 70 65 63 41 72 72 61 | 79 20 66 6f 6c 64 65 72 |SpecArra|y folder|
|00000190| 5f 73 70 65 63 3b 0d 09 | 53 74 72 32 35 35 20 65 |_spec;..|Str255 e|
|000001a0| 6d 61 69 6c 5f 61 64 64 | 72 65 73 73 3b 0d 09 6c |mail_add|ress;..l|
|000001b0| 6f 6e 67 20 61 74 74 72 | 3b 0d 09 6c 6f 6e 67 20 |ong attr|;..long |
|000001c0| 73 69 7a 65 3b 0d 09 6c | 6f 6e 67 20 73 65 65 64 |size;..l|ong seed|
|000001d0| 3b 0d 0d 09 65 72 72 20 | 3d 20 49 43 53 74 61 72 |;...err |= ICStar|
|000001e0| 74 28 26 69 6e 73 74 2c | 20 27 43 52 45 41 27 29 |t(&inst,| 'CREA')|
|000001f0| 3b 09 09 09 2f 2a 20 74 | 65 6c 6c 20 69 74 20 79 |;.../* t|ell it y|
|00000200| 6f 75 72 20 61 70 70 6c | 69 63 61 74 69 6f 6e 20 |our appl|ication |
|00000210| 63 72 65 61 74 6f 72 20 | 2a 2f 0d 09 70 72 69 6e |creator |*/..prin|
|00000220| 74 66 28 22 49 43 53 74 | 61 72 74 3a 20 25 6c 64 |tf("ICSt|art: %ld|
|00000230| 5c 6e 22 2c 20 65 72 72 | 29 3b 0d 0d 09 66 6f 6c |\n", err|);...fol|
|00000240| 64 65 72 5f 73 70 65 63 | 5b 30 5d 2e 76 52 65 66 |der_spec|[0].vRef|
|00000250| 4e 75 6d 20 3d 20 2d 31 | 3b 09 09 09 09 09 09 09 |Num = -1|;.......|
|00000260| 09 2f 2a 20 73 65 61 72 | 63 68 20 66 6f 72 20 70 |./* sear|ch for p|
|00000270| 72 65 66 73 20 69 6e 20 | 72 6f 6f 74 20 6f 66 20 |refs in |root of |
|00000280| 74 68 65 20 73 79 73 74 | 65 6d 20 2a 2f 0d 09 66 |the syst|em */..f|
|00000290| 6f 6c 64 65 72 5f 73 70 | 65 63 5b 30 5d 2e 64 69 |older_sp|ec[0].di|
|000002a0| 72 49 44 20 3d 20 32 3b | 09 09 09 09 09 09 09 09 |rID = 2;|........|
|000002b0| 09 09 2f 2a 20 76 6f 6c | 75 6d 65 2c 20 6f 62 76 |../* vol|ume, obv|
|000002c0| 69 6f 75 73 6c 79 20 79 | 6f 75 27 64 20 75 73 65 |iously y|ou'd use|
|000002d0| 20 6f 74 68 65 72 20 74 | 68 69 6e 67 73 20 2a 2f | other t|hings */|
|000002e0| 0d 09 65 72 72 20 3d 20 | 49 43 46 69 6e 64 43 6f |..err = |ICFindCo|
|000002f0| 6e 66 69 67 46 69 6c 65 | 28 69 6e 73 74 2c 20 31 |nfigFile|(inst, 1|
|00000300| 2c 20 28 49 43 44 69 72 | 53 70 65 63 41 72 72 61 |, (ICDir|SpecArra|
|00000310| 79 50 74 72 29 20 26 66 | 6f 6c 64 65 72 5f 73 70 |yPtr) &f|older_sp|
|00000320| 65 63 29 3b 0d 09 70 72 | 69 6e 74 66 28 22 49 43 |ec);..pr|intf("IC|
|00000330| 46 69 6e 64 43 6f 6e 66 | 69 67 46 69 6c 65 3a 20 |FindConf|igFile: |
|00000340| 25 6c 64 5c 6e 22 2c 20 | 65 72 72 29 3b 0d 0d 09 |%ld\n", |err);...|
|00000350| 65 72 72 20 3d 20 49 43 | 42 65 67 69 6e 28 69 6e |err = IC|Begin(in|
|00000360| 73 74 2c 20 69 63 52 65 | 61 64 57 72 69 74 65 50 |st, icRe|adWriteP|
|00000370| 65 72 6d 29 3b 0d 09 70 | 72 69 6e 74 66 28 22 49 |erm);..p|rintf("I|
|00000380| 43 42 65 67 69 6e 3a 20 | 25 6c 64 5c 6e 22 2c 20 |CBegin: |%ld\n", |
|00000390| 65 72 72 29 3b 0d 09 73 | 69 7a 65 20 3d 20 73 69 |err);..s|ize = si|
|000003a0| 7a 65 6f 66 28 65 6d 61 | 69 6c 5f 61 64 64 72 65 |zeof(ema|il_addre|
|000003b0| 73 73 29 3b 0d 09 65 72 | 72 20 3d 20 49 43 47 65 |ss);..er|r = ICGe|
|000003c0| 74 50 72 65 66 28 69 6e | 73 74 2c 20 22 5c 70 45 |tPref(in|st, "\pE|
|000003d0| 6d 61 69 6c 22 2c 20 26 | 61 74 74 72 2c 20 28 50 |mail", &|attr, (P|
|000003e0| 74 72 29 20 65 6d 61 69 | 6c 5f 61 64 64 72 65 73 |tr) emai|l_addres|
|000003f0| 73 2c 20 26 73 69 7a 65 | 29 3b 0d 09 70 72 69 6e |s, &size|);..prin|
|00000400| 74 66 28 22 49 43 47 65 | 74 50 72 65 66 3a 20 25 |tf("ICGe|tPref: %|
|00000410| 6c 64 5c 6e 22 2c 20 65 | 72 72 29 3b 0d 09 0d 09 |ld\n", e|rr);....|
|00000420| 70 32 63 73 74 72 28 65 | 6d 61 69 6c 5f 61 64 64 |p2cstr(e|mail_add|
|00000430| 72 65 73 73 29 3b 0d 09 | 70 72 69 6e 74 66 28 22 |ress);..|printf("|
|00000440| 59 6f 75 72 20 45 6d 61 | 69 6c 20 61 64 64 72 65 |Your Ema|il addre|
|00000450| 73 73 20 69 73 20 25 73 | 5c 6e 22 2c 20 65 6d 61 |ss is %s|\n", ema|
|00000460| 69 6c 5f 61 64 64 72 65 | 73 73 29 3b 0d 09 44 75 |il_addre|ss);..Du|
|00000470| 6d 70 50 72 65 66 73 28 | 29 3b 0d 09 65 72 72 20 |mpPrefs(|);..err |
|00000480| 3d 20 49 43 45 6e 64 28 | 69 6e 73 74 29 3b 0d 09 |= ICEnd(|inst);..|
|00000490| 70 72 69 6e 74 66 28 22 | 49 43 45 6e 64 3a 20 25 |printf("|ICEnd: %|
|000004a0| 6c 64 5c 6e 22 2c 20 65 | 72 72 29 3b 0d 0d 09 65 |ld\n", e|rr);...e|
|000004b0| 72 72 20 3d 20 49 43 47 | 65 74 53 65 65 64 28 69 |rr = ICG|etSeed(i|
|000004c0| 6e 73 74 2c 20 26 73 65 | 65 64 29 3b 0d 09 70 72 |nst, &se|ed);..pr|
|000004d0| 69 6e 74 66 28 22 49 43 | 47 65 74 53 65 65 64 3a |intf("IC|GetSeed:|
|000004e0| 20 25 6c 64 20 3d 20 25 | 6c 64 5c 6e 22 2c 20 65 | %ld = %|ld\n", e|
|000004f0| 72 72 2c 20 73 65 65 64 | 29 3b 0d 09 2f 2a 20 6e |rr, seed|);../* n|
|00000500| 6f 77 20 6d 6f 6e 69 74 | 6f 72 20 74 68 69 73 20 |ow monit|or this |
|00000510| 73 65 65 64 20 74 6f 20 | 73 65 65 20 69 66 20 61 |seed to |see if a|
|00000520| 6e 79 20 70 72 65 66 65 | 72 65 6e 63 65 73 20 68 |ny prefe|rences h|
|00000530| 61 76 65 20 63 68 61 6e | 67 65 64 20 2a 2f 0d 0d |ave chan|ged */..|
|00000540| 09 65 72 72 20 3d 20 49 | 43 53 74 6f 70 28 69 6e |.err = I|CStop(in|
|00000550| 73 74 29 3b 0d 09 70 72 | 69 6e 74 66 28 22 49 43 |st);..pr|intf("IC|
|00000560| 53 74 6f 70 3a 20 25 6c | 64 5c 6e 22 2c 20 65 72 |Stop: %l|d\n", er|
|00000570| 72 29 3b 0d 7d 0d 0d 76 | 6f 69 64 20 44 75 6d 70 |r);.}..v|oid Dump|
|00000580| 50 72 65 66 73 28 29 0d | 7b 0d 09 49 43 45 72 72 |Prefs().|{..ICErr|
|00000590| 6f 72 20 65 72 72 3b 0d | 09 6c 6f 6e 67 20 63 6f |or err;.|.long co|
|000005a0| 75 6e 74 3b 0d 09 6c 6f | 6e 67 20 69 3b 0d 09 53 |unt;..lo|ng i;..S|
|000005b0| 74 72 32 35 35 20 6b 65 | 79 3b 0d 09 0d 09 65 72 |tr255 ke|y;....er|
|000005c0| 72 20 3d 20 49 43 43 6f | 75 6e 74 50 72 65 66 28 |r = ICCo|untPref(|
|000005d0| 69 6e 73 74 2c 20 26 63 | 6f 75 6e 74 29 3b 0d 09 |inst, &c|ount);..|
|000005e0| 70 72 69 6e 74 66 28 22 | 49 43 43 6f 75 6e 74 50 |printf("|ICCountP|
|000005f0| 72 65 66 3a 20 25 6c 64 | 5c 6e 22 2c 20 65 72 72 |ref: %ld|\n", err|
|00000600| 29 3b 0d 09 66 6f 72 20 | 28 69 20 3d 20 31 3b 20 |);..for |(i = 1; |
|00000610| 69 20 3c 3d 20 63 6f 75 | 6e 74 3b 20 69 2b 2b 29 |i <= cou|nt; i++)|
|00000620| 20 7b 0d 09 09 65 72 72 | 20 3d 20 49 43 47 65 74 | {...err| = ICGet|
|00000630| 49 6e 64 50 72 65 66 28 | 69 6e 73 74 2c 20 69 2c |IndPref(|inst, i,|
|00000640| 20 6b 65 79 29 3b 0d 09 | 09 70 32 63 73 74 72 28 | key);..|.p2cstr(|
|00000650| 6b 65 79 29 3b 0d 09 09 | 70 72 69 6e 74 66 28 22 |key);...|printf("|
|00000660| 20 20 49 43 47 65 74 49 | 6e 64 50 72 65 66 3a 20 | ICGetI|ndPref: |
|00000670| 25 6c 64 20 2d 20 25 73 | 5c 6e 22 2c 20 65 72 72 |%ld - %s|\n", err|
|00000680| 2c 20 26 6b 65 79 29 3b | 0d 09 7d 3b 0d 7d 0d 00 |, &key);|..};.}..|
|00000690| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000006f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000700| 00 00 01 00 00 00 01 6e | 00 00 00 6e 00 00 00 3e |.......n|...n...>|
|00000710| 33 45 38 30 3b 0d 46 55 | 4e 43 54 49 4f 4e 20 50 |3E80;.FU|NCTION P|
|00000720| 42 53 65 74 45 4f 46 28 | 70 61 72 61 6d 42 6c 6f |BSetEOF(|paramBlo|
|00000730| 0a 43 45 78 61 6d 70 6c | 65 2e 63 00 02 00 00 00 |.CExampl|e.c.....|
|00000740| 54 45 58 54 4d 50 53 20 | 01 00 00 14 00 00 00 00 |TEXTMPS |........|
|00000750| 00 00 54 45 58 54 4d 50 | 53 20 01 00 00 14 00 00 |..TEXTMP|S ......|
|00000760| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000770| 00 00 a9 a6 e5 13 00 00 | 06 0f 00 00 01 ac 6c 6b |........|......lk|
|00000780| 50 74 72 29 3a 20 4f 53 | 45 72 72 3b 0d 20 49 4e |Ptr): OS|Err;. IN|
|00000790| 4c 49 4e 45 20 24 32 30 | 35 46 2c 24 41 30 31 32 |LINE $20|5F,$A012|
|000007a0| 2c 24 33 45 38 30 3b 0d | 46 55 4e 43 54 49 4f 4e |,$3E80;.|FUNCTION|
|000007b0| 20 50 42 53 65 74 45 4f | 46 41 73 79 6e 63 28 70 | PBSetEO|FAsync(p|
|000007c0| 61 72 61 6d 42 6c 6f 63 | 6b 3a 20 50 61 72 6d 42 |aramBloc|k: ParmB|
|000007d0| 6c 6b 50 74 72 29 3a 20 | 4f 53 45 72 72 3b 0d 20 |lkPtr): |OSErr;. |
|000007e0| 49 4e 4c 49 4e 45 20 24 | 32 30 35 46 2c 24 41 34 |INLINE $|205F,$A4|
|000007f0| 31 32 2c 24 33 45 38 30 | 3b 0d 46 55 4e 43 54 49 |12,$3E80|;.FUNCTI|
|00000800| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00000810| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000820| 00 00 00 00 00 00 00 06 | 00 02 00 2a 00 03 01 d1 |........|...*....|
|00000830| 01 ff 00 35 00 04 01 dc | 02 00 ab bf 4a d5 00 00 |...5....|....J...|
|00000840| 00 a4 00 00 00 a4 00 00 | 00 00 00 00 00 00 00 1e |........|........|
|00000850| 00 2a 00 03 01 d1 01 ff | 00 35 00 04 01 dc 02 00 |.*......|.5......|
|00000860| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000870| 01 00 00 00 01 6e 00 00 | 00 6e 00 00 00 3e 00 28 |.....n..|.n...>.(|
|00000880| 26 f8 0e 54 00 00 00 1c | 00 3e 00 00 4d 50 53 52 |&..T....|.>..MPSR|
|00000890| 00 01 00 0a 03 ed ff ff | 00 00 00 00 00 00 00 00 |........|........|
|000008a0| 03 f0 ff ff 00 00 00 4c | 00 2a 82 40 00 00 00 00 |.......L|.*.@....|
|000008b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000008f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+